home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmTextFieldReplace.z
/
XmTextFieldReplace
Wrap
Text File
|
1998-10-30
|
6KB
|
133 lines
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee - A TextField function that replaces part
of a text string
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/TextF.h>
vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee(
WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ffffrrrroooommmm____ppppoooossss,
XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ttttoooo____ppppoooossss,
cccchhhhaaaarrrr **** vvvvaaaalllluuuueeee);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee replaces part of the text string in the
TextField widget. The character positions begin at 0 (zero)
and are numbered sequentially from the beginning of the
text.
An example text replacement would be to replace the second
and third characters in the text string. To accomplish this,
the parameter _f_r_o_m__p_o_s must be 1 and _t_o__p_o_s must be 3. To
insert a string after the fourth character, both parameters,
_f_r_o_m__p_o_sand _t_o__p_o_s, must be 4.
This routine calls the widget's XXXXmmmmNNNNvvvvaaaalllluuuueeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk and
verification callbacks, either XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk or
XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss, or both. If both verification
callback lists are registered, the procedures of the
XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk list are executed first and the
resulting data is passed to the XXXXmmmmNNNNmmmmooooddddiiiiffffyyyyVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkkWWWWccccssss
callbacks. The XXXXmmmmNNNNmmmmoooottttiiiioooonnnnVVVVeeeerrrriiiiffffyyyyCCCCaaaallllllllbbbbaaaacccckkkk is generated if
_t_o__p_o_s is less than or equal to the cursor position and the
length of _v_a_l_u_e is not the same as the length of the text
being replaced, or if the cursor position is between
_f_r_o_m__p_o_s and _t_o__p_o_s, and the distance from the cursor
position to _f_r_o_m__p_o_s is greater than the length of _v_a_l_u_e.
_w_i_d_g_e_t Specifies the TextField widget ID
_f_r_o_m__p_o_s Specifies the start position of the text to be
replaced
_t_o__p_o_s Specifies the end position of the text to be
replaced
_v_a_l_u_e Specifies the character string value to be added
to the text widget
For a complete definition of TextField and its associated
Page 1 (printed 10/24/98)
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeee((((3333XXXX))))
resources, see XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3).
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeelllldddd(3). XXXXmmmmTTTTeeeexxxxttttFFFFiiiieeeellllddddRRRReeeeppppllllaaaacccceeeeWWWWccccssss(3).
Page 2 (printed 10/24/98)